package com.information.manage.MaintenanceRecord.service.impl;

import com.information.manage.MaintenanceRecord.mapper.zhongmaoMapper;
import com.information.manage.MaintenanceRecord.pojo.zhongmao;
import com.information.manage.MaintenanceRecord.service.zhongmaoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class zhongmaoServicelmpl implements zhongmaoService {
    @Autowired
    private zhongmaoMapper zhongmaoMapper;

    @Override
    public List<zhongmao> selectAll() {
        return zhongmaoMapper.selectAll();
    }

    @Override
    public void addMaintZhongmao(zhongmao zhongmao) {
        zhongmaoMapper.insert(zhongmao);
    }

    @Override
    public void updateMaintZhongmao(zhongmao zhongmao) {
        zhongmaoMapper.update(zhongmao);
    }

    @Override
    public void deleteMaintZhongmao(Integer zmid) {
        zhongmaoMapper.delete(zmid);
    }

    @Override
    public void logicDeleteMaintZhongmao(Integer zmid) {
        zhongmaoMapper.logicDelete(zmid);
    }
}